package com.xgry.bpm.api.base.moduler.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * TBModuler对象
 * </p>
 *
 * @author admin
 * @since 2020-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
@TableName("t_b_moduler")
@ApiModel(value = "TBModuler对象", description = "模块表")
public class TBModuler implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "按钮主键")
    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(name = "id")
    private Integer id;

    @ApiModelProperty(value = "乐观锁")
    @ExcelIgnore
    @Version
    @JSONField(name = "version")
    private Integer version;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "模块名称")
    private String vModulerName;

    @ApiModelProperty(value = "模块url")
    private String vModulerUrl;

    @ApiModelProperty(value = "模块图标")
    private String vModulerIcon;

    @ApiModelProperty(value = "模块排序号")
    private Integer iModulerSort;

    @ApiModelProperty(value = "模块编码")
    private String vModulerCode;

    @ApiModelProperty(value = "模块状态 0:启用 1：停用")
    private String vModulerState;

    @ApiModelProperty(value = "门户id")
    private Integer gatewayId;

    @ApiModelProperty(value = "门户名称")
    private String gatewayName;

    @ApiModelProperty(value ="门户编码")
    private String vGatewayCode;


}